import request from '@/utils/request'

// 广告位管理
export function positionIndex(params) {
    return request({
        url: '/manager/plan_position/positionIndex',
        method: 'get',
        params
    })
}

// 展示区管理
export function positionDisplayIndex(params) {
    return request({
        url: '/manager/plan_position/positionDisplayIndex',
        method: 'get',
        params
    })
}

// 新增
export function positionCreateData(data) {
    return request({
        url: '/manager/plan_position/positionCreateData',
        method: 'post',
        data
    })
}
// 修改广告状态
export function positionEditStatus(data) {
    return request({
        url: '/manager/plan_position/positionEditStatus',
        method: 'post',
        data
    })
}

export function getPositionInfo(params) {
    return request({
        url: '/manager/plan_position/getPositionInfo',
        method: 'get',
        params
    })
}

export function positionEditData(data) {
    return request({
        url: '/manager/plan_position/positionEditData',
        method: 'post',
        data
    })
}
